Convert Char into a String

scala

Solution

String doesn't have a `.first()` function. Do you mean `.head`?

Using `head` and returning a String is as simple as:

s.head.toString

Problem

Given `s : String` how can I cast the result of ``` s.first() ``` into a `String` ?

Original source