This change is really not needed as in both cases in the command to check and in the list of commands we currently replace the result with an empty string and both apply same behavior. It's really just for debugging/reading purposes...
Currently, a matched string would be replaced from
period=monthformat=php... whereas with this PR it would be
It is actually not needed.