catching exeption from string hook