Fix branch name bug

It fixes branch name bug. `lstrip('abc')` will delete all `abc` from left (`'abcbcd'.lstrip('abc')` = 'd', not 'bcd')