var="a b c"
p="${var// /
}"
echo $p