I think it would be safer to err on the side of caution and strip whitespace on both sides if we're not sure about curl stripping for us. It might change in a future version.