updated toString to using apache