Hai provato a fare un $fatturarelativa = trim($fatturarelativa); ?