Add a default value for once name and check once parameter is a string

Add a default value for once name and check once parameter is a string

fix #20