Calculate variable strings