added the strip function