How can I manipulate a pandas Series with a self defined function?

I have a function which performs manipulations on a Series. I want to apply this function to every string in the series.

I looped through the series, applied the function on each and saved the values in a list. Finally I converted the list to a new Series. This works, however, i think there must be a better way to do this.