Fixed case where char before dollar was being eaten
Fixed case where char before dollar was being eaten, this time for strings