Ensure no leading or trailing whitespace on the remote_addr

If reading the remote_addr from `X-Forwarded-For` header, ensure that there is no leading or trailing whitespace. If `ip_binding` is enabled for staff sessions, this could cause unexpected logouts