fix #1083 tooltip issue when there are quotes in the string