First of all i need to give credit to www.wellho.net. I got some code from their website also to implement this. My basic requirement was to read from the input arguments and display it as a vector of type integers. Below is the code. Pardon me for the formatting issues. WordPress sucks when coding: function string:split(delimiter)