fix blank spaces bug of ref by trim
Merge pull request #10 from YanshuoH/yhuang/fix_ref_blank_spaces

fix blank spaces bug of ref by trim