Database name can now be MAX_DATABASE_NAME_LENGTH long.
Added more restrictions to strings.