Remove placing a $ at the end of the selection