Removed trailing spaces.
Handles multi-selection.