catch any exception at string to stack func