Respects beginning-of-line flag to fix /^\s*/ replacements. Closes #117