Another quick typo fix to allow equation to record varaibles
Fixed problem reading last character if there are no brackets