[ip] use string formatting instead of the + operator