Custom RoyaleAPI search

I’d like to do a custom search for the profile MaTT (case sensitive). Obviously the search should only contain “MaTT” and not “case sensitive”, no spaces. I had an account in 2017 but I lost it a long time ago, when I stopped playing. Now, after resuming to play, when I linked my account to Play Games, it did not detect my progress; so, I’m trying to do an API search to see if it’s still there, but searching for “MaTT” on the API page returns tons of results most of which aren’t capitalised properly or have other things added to the name, while my name was exactly “MaTT”.
Thank you.