fixed bug where input longer than 2 words didnt work