<human>:  Give me a Python function to remove white spaces from strings.
<bot>: Here is a Python function for string remove white spaces

import re

def remove_white_spaces(s):
  """
  Remove white spaces from a string.

  :param s: The string.
  :return: The string without white spaces.
  """
  return re.sub(r'\s+','', s)

# Enter the string
string = "carnation"

# Calling the function
print((remove_white_spaces(string)))

#Example Output
# carnation

#Remember to inspect code for bugs.