How do you trim whitespace from the start and end of a string?
trim \" abc \" => \"abc\"
Edit:
Ok, let me be a little cleare
Another (std) solution
import System.Environment import Data.Text strip :: String -> IO String strip = return . unpack . Data.Text.strip . pack main = getLine >>= Main.strip >>= putStrLn