only assume ID if entire string is numeric
Merge pull request #1756 from garywall/str2uidgid_fix

only assume ID if entire string is numeric