I don't want to introduce a regex for this as it's such a small edge case. I think this could be checked just using strpos() and substr().