Scala 2.10 only has #toString, #regex is from Scala 2.11