Use Boost trim algorithm