multilineString for scala is a good approximation