Move string functions to their own file