bug fix regarding blanks in beginning scan