need to check value to see if it a string before converting for match