Some string algorithm playing