Those links should help you out.
One important point is that ‘\f’ is not a string. It’s a charlist (single quotes for charlists and double quotes for strings), and the behavior of charlists and strings are totally different.
The i command in iex was written to help with this exact problem.
iex(1)> [12,2]–[2,3,4,5,6]
‘\f’
iex(2)> i v(1)
Term
‘\f’
Data type
List
Description
This is a list of integers that is printed as a sequence of characters
delimited by single quotes because all the integers in it represent valid
ASCII characters. Conventionally, such lists of integers are referred to as
“charlists” (more precisely, a charlist is a list of Unicode codepoints,
and ASCII is a subset of Unicode).
Raw representation
[12]
Reference modules
List