String Manipulation

Strings can be concatenated with the // operator:

character(len=:), allocatable :: str
str = 'Modern ' // 'Fortran'

Use the index of the string to access or change single characters. The first character can be changed to lower-case with:

str(1:1) = 'm'

For advanced string manipulation, you can use one of the available Fortran modules: