title: Fanny's Occurences
body: <p>Fanny is given a string along with the string which contains single character x. She has to remove the character x from the given string. Help her write a function to remove all occurrences of x character from the given string.
  Input Specification:</p>
  <p>Input 1: input string s</p>
  <p>Input 2: String containing any character x</p>
  <p>Output Specification:</p>
  <p>String without the occurrence of character x</p>
  <p>Example 1:</p>
  <p>Input:</p>
  <p>welcome to mettl</p>
  <p>l</p>
  <p>Output:</p>
  <p>wecome to mett</p>
  <p>Explanation: As I is the character which is required to be removed, therefore all the occurrences of I are removed, keeping all other characters.</p>
  <p>Example 2:</p>
  <p>input1: I out of Rings</p>
  <p>Input2: o</p>
  <p>Output: I ut f Rings</p>
  <p><strong>MY solution:</strong></p>
  <pre><code>def extractSecretMessage(Str, Sub): 
      Str= Str.replace(Sub, &quot; &quot;)     
      return Str.strip() 
  Str = input(&quot;&quot;)
  Sub = input(&quot;&quot;)
  print(extractSecretMessage(Str, Sub)) 
  
  </code></pre>
  <p>ERROR:
  Input (stdin)</p>
  <p>Tamilarasan guna
  a
  Your Output (stdout)</p>
  <p>T mil r s n gun
  Expected Output</p>
  <p>Tmilrsn gun
  Compiler Message</p>
  <p>Nice try, But you did not pass the test case!</p>