Check if 3 is first or last digit