In answers before any character includes nonprintable characters and blancs you can filter a string by using tr -dc
Example:
echo -en "\x09H\x09ello\x0A\x0AHello\x20\x0A" | tr -dc [:alpha:]