Fixing str substitution for port.