Add string API routines to replace substrings

4 unit tests for these two new API functions

Using the functions in parser.c when reading lines of text.