Removed an unused variable in 'indentlines' function and set default value for the 'text' argument to an empty string