Fixed the case one some JSON elements and trimmed whitespace from parameters.