adding a flag to only match at the begining of the string.