Fixing bugs in sf:longest-string

Fixed bugs in sf:longest-string. Changes name to
sf:index-of-longest-string to better reflect its function. Added
sf:index-of-shortest-string.