Added ability to set customs pattern for tooltip message