Removing unnecessary replace()