Remove trail and lead whitespaces