refactor(ltrim): remove 'g' from regex