returning empty string instead of throwing exception