Avoid invisible text when copying text to search