Below is the sample code I need to capitalise. I have achieved by using the "capitalized" method.
var string = "6TH FLOOR BAMBALAPITIYA"
print(string.capitalized)
The result was,
6Th Floor Bambalapitiya
But I do not want the letter T in "6Th Floor" to be capitalised. Please help me to write a common function to achieve,
6th Floor Bambalapitiya
Thank you in advance