user
Task: Given a string of characters, remove the whitespace characters.

my_string = ' '


assistant
def remove_whitespace(s):
    # check for valid input
    assert isinstance(s, str), 'Input must be a string.'
    # remove whitespace characters
    s = s.replace(" ", "") 
    return s