finally solved substring...