print("Enter a string: ", terminator: "") if let str = readLine() { print(str) }