Detects if looking for int flag and passed string and vice-versa