Longest Prefix String