a triangular object from a string