Functions for mapping/filtering over strings and bytes