Change function to string