Use request params for startswith
Add support for endswith and contains request parameter.