Fix fail to pass string as argument issue