modified string replace