Fixed the strip function