Fix for small bug in blank space logic