changing the character set.. so it doesn't go to the end of the string, or just recognize a branch name as it should be