1. Use StringTools instead of XString.
2. Complete functions isAllDigit isAllAlpha isValidIPAddress.