Implement lp to string method