// Some code
import Foundation // for str.capitalized
let str = "this is an apple"
str.capitalized // This Is An Apple
Swift โฉ
StringProtocol - only String, Substring are valid conforming types.
โญ๏ธ ้ๆ่ฉฒๅฐฑๆฏ็บไป้บผ String ่ Substring ๆ็ธๅ็ๆนๆณ็ๅๅ ๅง๏ผ