Don't access char[0] if it does not exist, and return empty string rather than null