get variables in string