changed to check string

Changed to check for string equality instead of using regex.