Avoid String.replace as it is reg exp based (IDEA-98680)