ip str and int transformation