Refactoring
Added ignoring of space characters
Number of space characters now may vary