Updated the case reference function so it will also allow users to search using the case reference in any way, as long as it contains :ref