Bug fix: remove call-time pass-by-reference.
if name is null or empty, insert empty index.
Merge pull request #1 from mya-zaki/v1.0

Bug fix: remove call-time pass-by-reference.