Remove unnecessary str.replace