None of the funds herein mentioned shall be subject to attachment, garnishment, judgment, or other legal process; nor shall be assignable, but shall be paid to the beneficiary.