added TrimWhiteSpace function, fixed html indenting