`String simpleName =  Iterables.getLast(Splitter.on('.').omitEmptyStrings().trimResults().split(name), name.trim());`

Will do what we want for these two lines.