UTIL: Refactored in-place string functions to take pointers