Add string replacement tests