- optimized stringreplace