make sure words not longer than 19 and input cannot exceed 19 chars