I would tend to agree. If you know how to use regular expressions, that would probably be a better solution. User defined functions tend to slow things down a lot. If you are using my method against large data sets it is going to have performance issues.