remove unreachable clause in string parsing