local p = {}

-- Ritorna il primo carattere di una stringa UTF-8
function p.startswith (frame)
	return frame.args[1]:match("[%z\1-\127\194-\244][\128-\191]*")
end

function p.endswith (frame)
    return frame.args[1]:match("[^\128-\191][\128-\191]*$")
end

return p