added string manip function