how to apply strip to all items in a list code example Example: strip array of strings python map(lambda x: x.strip(), l)