func switchLetters(str:String) -> String {
var strArray:[Character] = []
for x in str.characters {
strArray.append(x)
}
var changedString:String = ""
for x in 0..<strArray.count {
if String(strArray[x]) == String(strArray[x]).lowercased() {
changedString.append(Character((String(strArray[x]).uppercased())))
} else {
changedString.append(Character((String(strArray[x]).lowercased())))
}
}
return changedString
}
for i in str.characters {
if String(i) == String(i).uppercased() {
strChanged.append(String(i).lowercased())
} else {
strChanged.append(String(i).uppercased())
}
}
return strChanged
}