Change type parameter of startsWith method to avoid confusion with type parameter of Stream