Parse polynomial regardless of whitespace