Changed match to search. Match searches from the start of the string, whereas search searches anywhere in the string