add testing code for string parsing functions