Refactored BedrockTextHelper.