strip extra-long IP