changes
fix writeln and trim