read var
for (( i=0; i<${#var}; i++ ))
do
if [[ "${var:i:1}" == "" ]]; then

done