a = " hellllooooooo " b ="hello" def space(letter): if letter != letter.strip(): print("you must strip") else: print("no need to strip") space(a) space(b)