wrap strings in excpetion handling