Removed redundant replaceAll() lines.