Added choice to omit spaces

I have added a second parameter to the function that accepts a 1 or a
0. If it is set to 1, all spaces in the string will be omitted. If it
is set to 0, spaces will be included, and the output will be the same
as using list(string).