introduce strip function