Sped up capitalize function