removing empty spaces for second intentions