See inside. Please try the demo.
To use, make sure you make both spacing character inputs the same. I recommend using a variable to ensure this.