Thanks for your answer mtf,
I understand how the strip command works and what you did in the code above. Yet I don’t understand why my code doesn’t remove the whitespace and if i change it to .strip(’ ') it doest, but only the whitespace after the datapoints.
I’ve made a screenshot of my written code, hopefully you can clear some things out for me!
Stijn van den Berg