add a yaml trimmer

fix #17, fix #18