added: empty input string handler