HexLibraryHexLibrary
</> HexCodeSign inSign up
PythonJavaScriptTypeScriptCC++JavaPHPGoRustRubyBashSQLLuaPerlCOBOLPascalDelphiFortranDartSwiftC#JuliaGroovyRElixirHaskellKotlinScalaClassic ASPClipperMS-DOS
LESSONS
Introduction to JuliaVariablesData TypesOperatorsStringsArraysConditions (if / else)Loops (for / while)Functions
REFERENCE
📖 Overview
🖥️ Output
📦 Variables & Types
🔢 Numbers & Math
✍️ String
Concatenation ( * )length() / uppercase()occursin() / replace()
📚 Array & Dictionary
🔀 Condition & Loop
🧩 Function
Julia›REFERENCE›String
✍️

String

Concatenation, length, casing, and searching.

CommandDescription
Concatenation ( * )Concatenates two strings.
length() / uppercase()Length and case conversion.
occursin() / replace()Searching and replacing.

Concatenation ( * )

Try it yourself →

Concatenates two strings.

Syntax

text * text

Description

In Julia, text concatenation is done with * (not +!). Convert numbers to text first with string() or embed them with $.

Example

name = "Hex"
println(name * "Library")
println("Score: " * string(95))

Expected output

HexLibrary
Score: 95

When to use?

Creating strings.

Common mistakes

  • ⚠️ + does not concatenate text; use *.

length() / uppercase()

Try it yourself →

Length and case conversion.

Syntax

length(s)   uppercase(s)   lowercase(s)

Description

length returns the character count. uppercase converts to uppercase, lowercase to lowercase (returns a new string).

Example

s = "HexLibrary"
println(length(s))
println(uppercase(s))
println(lowercase(s))

Expected output

10
HEXLIBRARY
hexlibrary

When to use?

Input validation, case-insensitive comparison.

occursin() / replace()

Try it yourself →

Searching and replacing.

Syntax

occursin("x", s)   //   replace(s, "a"=>"b")

Description

occursin tells whether a substring exists in the text (true/false). replace swaps matches using the arrow (=>).

Example

s = "HexLibrary"
println(occursin("Lib", s))
println(replace("2024-01", "-" => "/"))

Expected output

true
2024/01

When to use?

Search boxes, text sanitization.

HexLibraryHexLibrary

Learn programming more clearly. Every command is explained line by line with colors, reinforced with runnable exercises, test your code instantly — all in one place, free.

Learn

  • Home
  • Languages & Lessons
  • HexCode

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Use

Other Projects

  • HexToolz
  • Free Service Manuals
© 2026 HexLibrary · The clearest way to learn code