FIxed error where randomWord string would have random characters at the end of it