Simple String manipulation in Swift