Added trimming of whitespaces to EscapeRequestString