removed trailing whitespace
Added strict left scans