Add a better string check for uri