Removes whitespace and caps from JSON headings.