Rewrites stripHeader to take any string