Fixed bug while reading a single space char