Added java class for string space replacer
using character arrays