Despite the apparent convenience,
does not define variable e1 to have type String. Variable e1 has type String = "123", which though rather nonsensical, is a valid Idris type.
At the repl, you can
:let e1: String
:let e1 = "123"
to get the desired behavior.