filter out members that not starts with prefix if prefix exists