Fixed an error in the capitalise func