add check for "$" in strings

Check if there's a "$" in the string when using the Reference option