unlogical string comparison resolved, wrong debug pointer cast resolved