Some refactorization, streams starting from a given prefix