couple small bugfixes in code when it was expecting a string but got a integer instead well trying to create a search string for providers to use.