Added array support for stripPrefix