Add find_prefix and apply it to SJOIN