Make stringreplace function return string as well.