remove trailing white-space from app/controllers/documents_controller.rb