A method used to convert a string into a heading