annotate return types for often used string functions