title: String.startwith Vs regex
body: <p>There is a dynamic string and I want to validate whether it starts with 'image'. For that I'm using below code snippet.</p>
  
  <pre><code>var isValidImage = inputType.startsWith('image');
  </code></pre>
  
  <p>Is this the recommended way or should I use regX here? What is the best option?</p>