[Haskell-beginners] how to check the format of a string ?