removed trailing empty spaces