Actually that code wouldn't quite work due to x being a String, but you get the idea!