Done (using single expression to remove leading and trailing space and adding some comments).