Trim table text content before searching on it.