Remove redundant whitespace
Fix branches with a '/' in them being returned incorrectly