Fix trim on first part
Prepare 0.5.0 release