remove trailing $