return empty string if pop is called without being called accumulate