Use $() instead of ` ` .
Right
var="$(command)"
Wrong
var=`command`
$() can easily be nested whereas `` cannot.
var="$(command "$(command)")"