added an option to specify your own string to replace