title: Swift: Filter string by using start with
body: <p>I have an array as follows:</p>
  
  <pre><code>let array = ["sam", "andrew", "character"]
  </code></pre>
  
  <p>And I want to get every element in the array that starts with a character I type</p>
  
  <p>My problem is when i type "a" the output is "sam", "andrew", and "character". </p>
  
  <p>I want to get the output to only be "andrew". (The string must start from left to right when searching)</p>