title: Setting two argument in one data
body: <p>First, this is my code:</p>
  <pre><code>import re
  
  clientaddress = ('192.168.10.111', 43567)
  x = re.search(&quot;\d+.\d+.\d+.\d+\$&quot;, clientaddress)
  print (x)
  if x:
    print(&quot;YES! We have a match!&quot;)
  else:
    print(&quot;No match&quot;)
  </code></pre>
  <p>Here is the problem. the <strong>'ClientAddress'</strong> is imported from another server and its format is like this:
  ('IP', port)
  So we have an (str, int).
  the error is :</p>
  <pre><code> Traceback (most recent call last):
    File &quot;./prog.py&quot;, line 6, in &lt;module&gt;
    File &quot;/usr/lib/python3.7/re.py&quot;, line 183, in search
      return _compile(pattern, flags).search(string)
  TypeError: expected string or bytes-like object
  </code></pre>
  <p>After that, if I use this code:</p>
  <pre><code>import re
  
  
  clientaddress = str('192.168.31.111', 43567)
  clientaddress = ('192.168.31.111', 43567)
  x = re.search(&quot;\d+.\d+.\d+.\d+\$&quot;, clientaddress)
  print (x)
  if x:
    print(&quot;YES! We have a match!&quot;)
  else:
    print(&quot;No match&quot;)
  </code></pre>
  <p>The error that appeared is :</p>
  <pre><code>Traceback (most recent call last):
    File &quot;./prog.py&quot;, line 4, in &lt;module&gt;
  TypeError: str() argument 2 must be str, not int
  </code></pre>