Changes regex to match word boundary

The regex for matching "th" in a name is changed to a word boundary
after the "th" to handle, for instance, "25th " and "25th,"