Fixing NullPointerError caused by reading String from Ivy directly