improve git status string replacement