removed unnecessary preg_match, spaces round . op

Removed an unnecessary `preg_match()` when checking for `?` characters in a condition key string - only needed when checking for `:` characters to ensure they're not next to each other. Added spaces around the `.` operators that I forgot to do in a previous commit.