> Yes, I find that solution quite readable, but the OP > did ask how to do it *without* writing my_str/2... The real question for me was to find different elegant an understandable way of writing this. Thanks for your answers which are exactly what I am looking for. I like when programming is also esthetic. Regards.