remove the dollar sign at eol