I have some code in Swift on repl.it
let name = readLine()
print("Hello, \(name)!")
When I run it, I type in my name, and then it says "Hello, Optional("Andrew")!". I tried making the variable an optional string, like so:
let name: String? = readLine()
print("Hello, \(name)!")
Same result. What is wrong, and how do I avoid these errors?