Corrected cin so that it takes whole line