Added checkStringHttp function.