Nokia interview question

string split on ip address and modify