Have you ever finished doing something, and then thought to yourself, there has just got to be a better way to do this? Apparently, Mike's colleague has never had one of those moments:

The whole purpose of this code is to strip out “bad“ characters before writing the data to a file. This first part it responsible for testing the data and the next part (not shown) removes the -,+, etc from the strings if they were found.