fix spaces in function name