Remove trailing space + getVar number fix

Test for whole numbers wasn't specific enough.