in the event of a null string, just return empty string