change to:
case x if x startsWith "2.10" => "2.10"
case x => x