Simplified isIP() and isInt() methods

isIP: changed Regex and removed for-loop

isInt: replaced with one regex match