refactoring multiple string replace