revise 'strncmp' for echo check