Added a compact version of get common names from begin/end

@SChamberlain @EDiLD As discussed in #183, I am adding a example of a function with a simpler name. This obviously doesn't break anything existing but makes code cleaner and easier to read/review/follow.