Handles spaces correctly. Do not use cin on expressions with spaces, it thinks they are delimiters.
merged in changes from laptop