adding smart begin of line