Use length of string match, not regular expression