function clone will support string and number