removing String to Array conversion while invalidate