input/output string comparison added