use null-terminated-character instead of zero