Fixed incorrect string replace