Beginning of string function implementations