check to for empty string before returning