Functions for mapping/filtering over strings and bytes

Updated the pull request.