recognize sinle $ at end