Fixed an issue where tempFraction would accept strings with more than one /. Also created a new method errorMessage