Switched loading string to functions