swap % and $