some comments + improvement of first string detection