Reversing Strings in Scala