Added "replace" function for strings.