checking for contains rather than endsWith as sometime query parameter are attached