fix adapter trim to not crash if file contains empty lines
version 0.3.3