optimize some string usages