That's too specific for your use. I think you should not do this in the library and truncate right outside it when you make the call.