Checking for : in isValidLine