Moved string functions to separate file