Create a Python program to remove all whitespaces from a string.
"This is a string with whitespaces"
def remove_whitespace(s):
    return s.replace(" ", "")

print(remove_whitespace("This is a string with whitespaces"))