Simplified factor check, return False upon ValueError.
 - simplified operator checks to look at first index instead of .find