This seems better than the regular expression.