Fix bug when user types string less than 2 chars.