Strings externalization and optimizations