try to figure out what stringreplace is doing wrong