Fixed #2.
Trim white space on saving.