remove trainling newline in spec snippet
display function name before modes