parse a % from text