Move string functions to a separate file