kruxor.com
//
rtrim strip white space or strings from the end of a string
//
Demo