core: made strncmp instead of strcmp in case of new lines.