fix paranoid string check