added check for string inputs without http