minor fixes (check_string_length, version error)