For example, I have this string: 10.10.10.10/16
10.10.10.10/16
and I want to remove the mask from that IP and get: 10.10.10.10
10.10.10.10
How could this be done?