fixed parseStringVariable func - only replacing single occurence, now global