[DF-581] Trim right white spaces and convert all spaces to tabs.