Added helper funtionality

Added helper functionality to the core. Also added a string-helper for
formatting strings.