Add global config to auto strip trailing whitespaces
Rename method name for convention
Do not highlight whitespace before writing file