MATCHES should be used to allow for a regular expression. STREQUAL was using the expression as a literal string.