replaced string coordinates by array coordinates