0-strings were accepted + division by zero fix