RegExp .test() method was misspelled