input: Write a python function to calculate the total number of characters in a string.
  assert getNumberOfChars("Hello world") == 10
  assert getNumberOfChars("Python is awesome") == 16
  assert getNumberOfChars("This is a test") == 11
output: def getNumberOfChars(s: str) -> int:
      return len(s.replace(" ", ""))