Added methods substr and size.