dropAround +text

dropAround :: (Char -> Bool) -> Text -> Text
text Data.Text, text Data.Text.Lazy
O(n) dropAround p t returns the substring remaining after dropping characters that fail the predicate p from both the beginning and end of t. Subject to fusion.