deal with all of the strings in the same way