fix string comparison in jfunct