Replace with:

types::str lower(types::str s)
 {