string.partition is not 2.4 compatible.

Wouldn't it be easier to have a dedicated field in the config for the port ?