Detect leading spaces better at line start