Replace poor regexp with trim()
Retrieve configurations with `git config`