Getting substring in Swift

let str = "one way ticket"
let start = str.startIndex.advancedBy(4)
let end = str.startIndex.advancedBy(6)
//the first method
var way = str.substringWithRange(start...end) //"way"
//the second method
way = str[start...end] //"way"