Add SHA-1 hash computation in StringUtils

Also add unit tests for these methods.