Merged strip function