Fixed bug with double spacing
Added Test for double spacing bug