add option for string replacement

fixes #37