potential divizion by zero fixed
String tests refactoring