Removed trailing spaces. Added ability to disable URL optimization during form submit.