improve string generation logic.
Merge pull request #11 from hansode/vagrantfile

improve string generation logic.