I am working on a python program that prints the substrings of a string but the substrings to be printed are those starting with a vowel. I have applied the logic but I am getting spaces that I don't want in my output. Any help would be appreciated. The following is my code:

```
extract = []
W = str(input("Please enter any string: "))
vowels = ['a','e','i','o','u']

for i in W:
    extract.append(i)
print(extract)

j = 1
for i in range(len(W)):
    if W[i] in vowels:
        while j <= len(W):
            X = W[i:j]
            j += 1
            print(X)
    j = 1

```

And the following is my output for a string that I entered: 'somestring'

```
Please enter any string: somestring
['s', 'o', 'm', 'e', 's', 't', 'r', 'i', 'n', 'g']

o
om
ome
omes
omest
omestr
omestri
omestrin
omestring

e
es
est
estr
estri
estrin
estring

i
in
ing

```

See the spaces I'm talking about? I don't need them. My output should be something like:

```
o
om
ome
omes
omest
omestr
omestri
omestrin
omestring
e
es
est
estr
estri
estrin
estring
i
in
ing

```