Parameter: isXName & isQuotedString: refactoring

This commit refactors the `isXName` and `isQuotedString` static methods
to avoid unneeded usage of single use varables for tracking the
pass/fail status.

Signed-off-by: Mark Stenglein <mark@stengle.in>
3 jobs for develop in 51 seconds (queued for 2 seconds)