added strip function to clear any white space in the uri provided